//循环队列的测试

#include <iostream>
#include "sqqueue.h"

using namespace std;

int main()
{
    SqQueue<int, 10> Q;

    InitQueue(Q);

    EnQueue(Q, 100);
    EnQueue(Q, 200);
    EnQueue(Q, 300);
    EnQueue(Q, 400);
    EnQueue(Q, 500);

    while (!QueueEmpty(Q))
    {
        int e;
        DeQueue(Q, e);
        cout << e << endl;
    }

    return 0;
}